#include "beep.h"
#include "utils.h"

/* you need edit this code, port to your project */
#ifdef __SDCC
#define beep P2_2
#else
sbit beep = P2^2;
#endif

#define beep_initial 1
#define beep_on 0
#define beep_off 1

void beep_init(void)
{
    /* set initial state */
    beep_start();
    delay(10000);
    beep_stop();
}

void beep_start(void)
{
    beep = beep_on;
}

void beep_stop(void)
{
    beep = beep_off;
}

